﻿<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="screen-orientation" content="portrait" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>首页</title>
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="js/vue.js"></script>
    <style>
        .item {
            width: 200px;
            height: 60px;
            line-height: 60px;
            text-align: center;
            background-color: #f0f0f0;
            cursor:pointer;
            border-radius:20px;
            margin:5px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div>
            <h2>webSocket使用演示</h2>
        </div>
        <div>
            <div class="item" v-on:click="gourl('myself')">我的聊天界面</div>
            <div class="item" v-on:click="gourl('myfriend')" style="background-color:aquamarine;">我朋友的聊天界面</div>
        </div>
        <div>
            <p>1.本demo使用ashx一般处理程序，存在跨域问题，请将应用部署在同一个站点下。</p>
            <p>2.项目下demo文件夹仅作演示使用，使用时可以删除。</p>
            <p>3.演示提供两个页面完成即时通信，可以用不同浏览器打开测试。</p>
        </div>
     </div>
</body>
</html>
<script type="text/javascript">
    $(function () {
        var app = new Vue({
            el: '#app',
            data: {
            },
            methods: {
                gourl: function (aim) {
                    window.location.href = aim + ".html";
                },
            },
            created: function () {
               
            },
        });
    });
</script>